<?php include_once 'header.php'; ?>


    <link rel="stylesheet" type="text/css" href="/public/statics/libs/wangEditor/dist/css/wangEditor.min.css">
    <script type="text/javascript" src="/public/statics/libs/wangEditor/dist/js/lib/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="/public/statics/libs/wangEditor/dist/js/wangEditor.js"></script>



    <div id="page-wrapper">
        <div class="container-fluid">
            <div class="row" style="margin-top: 40px;">
                <div class="col-lg-12">
                    <form method="post" role="form">
                        <div class="form-group input-group">
                            <span class="input-group-addon">标题</span>
                            <input type='hidden' value="<?php echo $announce->id ?>" name="id"  />
                            <input type="text" value="<?php echo $announce->body_title ?>" name="body_title" class="form-control">
                            <span class="input-group-addon"></span>
                        </div>
                        <div class="form-group input-group">
                            <span class="input-group-addon">内容</span>
                            <textarea name="body_content" id="body_content" class="form-control" style="height:400px;">
                                <p><?php echo $announce->body_content ?></p>
                            </textarea>
                        </div>
                        <div style="text-align: center">
                            <button type="submit" class="btn btn-primary">发布</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>


    <!--这里引用jquery和wangEditor.js-->
    <script type="text/javascript">
        var editor = new wangEditor('body_content');
        editor.create();
    </script>

<?php include_once 'footer.php'; ?>